package ex55.mm.flow.impound.quote.common.kit;

import java.util.UUID;

public class UUIDKit {
    private static final int LEN = UUID.randomUUID().toString().replace("-", "").length();

    public static String randomUUID() {
        String uuidFull = UUID.randomUUID().toString();
        StringBuilder sb = new StringBuilder(LEN);
        for (int i = 0; i < uuidFull.length(); i++) {
            char c = uuidFull.charAt(i);
            if (c != '-') {
                sb.append(c);
            }
        }
        return sb.toString();
    }
}
